//
//  UIViewController+UINavigationController.swift
//  Documentation
//
//  Created by Toj on 2/7/23.
//

import Foundation

extension UIViewController {

    
    open var navigationItem: UINavigationItem { get } // Created on-demand so that a view controller may customize its navigation appearance.

    open var hidesBottomBarWhenPushed: Bool // If YES, then when this view controller is pushed into a controller hierarchy with a bottom bar (like a tab bar), the bottom bar will slide out. Default is NO.

    open var navigationController: UINavigationController? { get } // If this view controller has been pushed onto a navigation controller, return it.
}

extension UIViewController {

    
    @available(iOS 3.0, *)
    open var toolbarItems: [UIBarButtonItem]?

    @available(iOS 3.0, *)
    open func setToolbarItems(_ toolbarItems: [UIBarButtonItem]?, animated: Bool)
}
